-- QQ
GlobalX,GlobalY = -1,-1;
function AutoSendMessage(content)

end

function ClickOn(delay,x,y)
	if x > -1 then
		mSleep(delay);
		touchDown(1,x,y);
		mSleep(delay)
		touchUp(1,x,y);
	end
end
init("0",0)
Array = {
	["1-0"]={"选择英雄界面-QQ",{3,55,718,1172},"0|0|0x000000,-7|-1|0x232323,-16|0|0x000000,-44|7|0x000000,-52|12|0x050505,-12|17|0xffffff,-64|68|0xffffff,-108|28|0x3e1f05,-135|30|0x130605,-121|39|0xfeffce,-131|43|0xfcfcd3,-172|36|0xc7281d",95,0,0,0},
};
function isFindCoordinate(selectIndex)
	local tmpArray = Array[selectIndex]
	GlobalX,GlobalY = -1,-1;
	GlobalX,GlobalY = findColor(tmpArray[2],tmpArray[3],tmpArray[4],tmpArray[5],tmpArray[6],tmpArray[7])
	if GlobalX ~= -1 then
		return true
	else
		return false	
	end
end
--[[if isFindCoordinate("1-0") then
	ClickOn(200,GlobalX,GlobalY)
end]]
function writeFile(filename,content)
	file = io.open(filename,"w+");    --以只读方式打开一个文本文件
	if file then                        --如打开成功
		file:write(content);   --写入到剪贴板
		file:close();                   --关闭文件
	end
end
--writePasteboard("")
inputText("#CLEAR#") --删除输入框中的文字（假设输入框中已存在文字）
inputText("Welcome.#ENTER#"); --在输入框中输入字符串"Welcome."并回车
